package com.wzp.yyptproject.service;

import com.wzp.yyptproject.entity.KeShi;
import com.wzp.yyptproject.entity.ZiKeShi;
import com.wzp.yyptproject.repository.KeShiRepository;
import com.wzp.yyptproject.repository.ZiKeShiRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class ZiKeShiServiceimp implements ZiKeShiService{

    @Autowired
   private ZiKeShiRepository ziKeShiRepository;
    @Override
    public List<ZiKeShi> findAll() {
       return ziKeShiRepository.findAll();
    }
}
